//显示客户详细
function viewCustomer(sender,id){
    j.open("customer/view.do?customerId="+id,"customerView",null,1020,650);
}
/**显示客户需求详细*/
function showRequestView(sender,id,flag){
    j.open("customer/request.do?act=view&requestId="+id+"&flag="+flag,"requestView",null,1020,650);
}
/**客户跟进*/
function editFollowUp(sender,cid){
    if(sender){
        f.resetXY(sender);
    }
    f.opend("customer.do?act=editfu",{customerId:cid},"客户跟进",390,false,"frmFollowUp");
}
//分页获取客户跟进记录
function gofu(index,cid){
    f.getHtml("customer.do?act=getfulist",{customerId:cid,p:index},"followUpList");
}

//以下是出售房源的函数
function s_view(desListId){
    //di_view.resetXY(null);
    di_view.show("/user/listing/sold1.do?act=view",{listId:desListId},null);
}
function fllowUp_s(sender,listId){
    if(sender){
        f.resetXY(sender);
    }
    f.opend("/user/listing/sold1.do?act=editfu",{listId:listId},"房源跟进",390,false,"frmFollowUp_s");
}
//分页获取客户跟进记录
function gofu_s(index,cid){
    f.getHtml("/user/listing/sold1.do?act=getfulist",{listId:cid,p:index},"followUpList_s");
}

//以下是出租房源的函数
function r_view(desListId){
    //di_view.resetXY(null);
    di_view.show("/user/listing/rent1.do?act=view",{listId:desListId},null);
}
function fllowUp(sender,listId){
    if(sender){
        f.resetXY(sender);
    }
    f.opend("/user/listing/rent1.do?act=editfu",{listId:listId},"房源跟进",390,false,"frmFollowUp_r");
}
//分页获取客户跟进记录
function gofu_r(index,cid){
    f.getHtml("/user/listing/rent1.do?act=getfulist",{listId:cid,p:index},"followUpList_r");
}